package com.yunwaikeji.gy_tool_library.adapter;

import android.graphics.Color;

import com.yunwaikeji.gy_tool_library.R;
import com.yunwaikeji.gy_tool_library.adapter.recycler.GYRecyclerAdapter;
import com.yunwaikeji.gy_tool_library.adapter.recycler.GYViewHolder;
import com.yunwaikeji.gy_tool_library.model.GYSelectorPwModel;
import com.yunwaikeji.gy_tool_library.view.GYImageView;
import com.yunwaikeji.gy_tool_library.view.GYRelativeLayout;
import com.yunwaikeji.gy_tool_library.view.GYTextView;

public class GYStringPWAdapter extends GYRecyclerAdapter<GYSelectorPwModel, GYViewHolder> {
    private int itemPaddingLeft = 0;
    private int itemPaddingRight = 0;
    private int itemTextColor = Color.BLACK;
    private int itemTextSize;
    private int itemBackgroundColor = Color.WHITE;
    private int itemPressColor = Color.LTGRAY;

    public GYStringPWAdapter() {
        super(R.layout.adapter_pw_gy_string);
    }

    @Override
    protected void convert(GYViewHolder helper, GYSelectorPwModel item) {
        GYRelativeLayout itemRL = helper.getView(R.id.itemRL);
        itemRL.getViewSet().setPaddingPx(itemPaddingLeft, 0, itemPaddingRight, 0).toView()
                .getBackgroundBuilder()
                .setBackgroundColor(itemBackgroundColor)
                .setChangeColor(itemPressColor).build();
        GYTextView gyTextView = helper.getView(R.id.contentTV);
        GYImageView gyImageView = helper.getView(R.id.checkImg);
    }
}
